import axios from '../../request'

const baseUrl = '/dictionaryWord'
// 获取分页集合
export const getList = (data) => {
  return axios({
    url: baseUrl + '/getList',
    method: 'post',
    data
  })
}

// 获取不分页集合
export const getAll = (data) => {
  return axios({
    url: baseUrl + '/getAll',
    method: 'post',
    data
  })
}

// 获取发音
export const getVoice = (params) => {
  return axios({
    url: '/translate',
    method: 'get',
    params
  })
}
